package hu.tortavar2.client;

import hu.tortavar2.shared.Product;
import hu.tortavar2.shared.ProductCategory;
import hu.tortavar2.shared.Shop;

import java.util.List;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("main")
public interface SiteService extends RemoteService {

	public String getBlobStoreUploadUrl();
	
	public List<ProductCategory> getProductCategory();
	public void addNewCategory(ProductCategory category);
	public void deleteCategory(String encodedKey);
	
	public List<Shop> getShops();
	public void addShop(Shop shop);
	public void deleteShop(String encodedKey);
	
	public Product getProduct(String encodedKey);
	public List<Product> getProducts(String category);
 }
